package clazz.inherit;

public class B extends A {
    //子类:他继承了父类也有子类功能
    public static void printf2() {

        System.out.println("子类方法");

    }
}